<?php include './include/conf.php'; 						
	if(isset($_SESSION["identifiant"]))
	{
		if(isset($_POST["bp_ajouter"]))
		{
				$requete = $pdo->prepare("INSERT INTO categorie (id_categorie, nom) VALUES (NULL,? )");
				$requete->execute(array($_POST["categorie"]));
		}
		header('Location: gerer_categories.php');
		
	}
	else
	{
		header('Location: gerer_categories.php');
	}
?>